﻿using System.Windows;

namespace Socium {
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App {
		protected override void OnStartup(StartupEventArgs e) {
			base.OnStartup(e);

			var view_model = new MainWindowFormViewModel("Hallo!");
			
			var window = new MainWindow {DataContext = view_model};
			view_model.RequestClose += delegate {
				window.Close();
			};

			window.Show();
		}
	}
}
